<?php

namespace App\Http\Resources\Mini\PlatformAgentResource;

use Illuminate\Http\Resources\Json\JsonResource;

class PlatformAgentClass extends JsonResource
{
    /**
     * @var mixed
     */
    private $agent_name;
    /**
     * @var mixed
     */
    private $agent_mobile;
    /**
     * @var mixed
     */
    private $province;
    /**
     * @var mixed
     */
    private $city;
    /**
     * @var mixed
     */
    private $area;
    /**
     * @var mixed
     */
    private $agent_type;
    /**
     * @var mixed
     */
    private $detail;
    /**
     * @var mixed
     */
    private $wechat_account_type;
    /**
     * @var mixed
     */
    private $wechat_account;
    /**
     * @var mixed
     */
    private $alipay_account_type;
    /**
     * @var mixed
     */
    private $update_time;
    /**
     * @var mixed
     */
    private $create_time;
    /**
     * @var mixed
     */
    private $else_discount;
    /**
     * @var mixed
     */
    private $rate;
    /**
     * @var mixed
     */
    private $rate2;
    /**
     * @var mixed
     */
    private $alipay_account;
    /**
     * @var mixed
     */
    private $agent_admin_id;
    /**
     * @var mixed
     */
    private $wechat_account_type_id;
    /**
     * @var mixed
     */
    private $alipay_account_type_id;
    /**
     * @var mixed
     */
    private $sub_mch_id;
    /**
     * @var mixed
     */
    private $alipay_name;
    /**
     * @var mixed
     */
    private $split_type;
    /**
     * @var mixed
     */
    private $bank_card_number;
    /**
     * @var mixed
     */
    private $account_bank;
    /**
     * @var mixed
     */
    private $is_examine;
    /**
     * @var mixed
     */
    private $bank_user_name;

    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request): array
    {
        return [
            'id' => $this->id,
            'agent_name' => $this->agent_name,//用户名
            'agent_mobile' => $this->agent_mobile,//手机号
            'province' => $this->province,//省份
            'city' => $this->city,//市
            'area' => $this->area,//区域
            'detail' => $this->detail,//详细地址
            'agent_type' => $this->agent_type,//账户类型
            'wechat_account_type' => $this->wechat_account_type,//微信账户类型
            'wechat_account' => $this->wechat_account,//微信账户
            'alipay_account_type' => $this->alipay_account_type,//支付宝账户类型
            'alipay_account' => $this->alipay_account,//支付宝账户
            'agent_admin_id' => $this->agent_admin_id,//绑定管理员id
            'wechat_account_type_id' => $this->wechat_account_type_id,//微信账户类型id
            'alipay_account_type_id' => $this->alipay_account_type_id,//支付宝账户类型id
            'sub_mch_id' => $this->sub_mch_id,//子商户id
            'alipay_name' => $this->alipay_name,//支付宝收款人
            'split_type' => $this->split_type,//分账类型
            'bank_card_number' => $this->bank_card_number,//银行卡号
            'account_bank' => $this->account_bank,//开户行
            'is_examine' => $this->is_examine,//是否需要审核
            'bank_user_name' => $this->bank_user_name,//银行收款人
            'rate' => $this->rate,//微信手续费比例
            'rate2' => $this->rate2,//水费报警方案
            'else_discount' => $this->else_discount,//额外手续费
            'create_time' => $this->create_time,
            'update_time' => $this->update_time,
        ];
    }
}
